どんなキーが押されたか、キーの番号を取得して判定する。
$(' {エレメントを指定} ').keydown(function (e) {
var code = e.keyCode || e.which;
if (code === 9) {
// なにか処理
}
});