MRRPortfolioBeranda
← TOOLKIT/JAVASCRIPT KEYCODE INSPECTOR
LIVE KEYBOARD LISTENER ACTIVE

JavaScript KeyCode & Keyboard Event Inspector

Tekan tombol apapun di keyboard Anda atau pilih tombol cepat di bawah untuk menginspeksi nilai e.key, e.code, e.keyCode, dan modifier keys secara instan.

EVENT.KEYCODE (LEGACY)

13

Tombol terdeteksi: Enter

Ctrl ○Shift ○Alt / Option ○Meta / Cmd ⌘ ○
event.key
Enter

Nilai karakter yang diproduksi tombol

event.code
Enter

Posisi fisik tombol pada keyboard

event.which
13

Kode numerik sistem pengetikan

event.location
0 (Standard Key)

Area keyboard (kiri/kanan/numpad)

Quick Key Simulator (Cocok untuk Smartphone & Virtual Testing)

Klik untuk mensimulasikan

Live Code Snippet Generator

Template kode event handler otomatis disesuaikan dengan tombol yang sedang aktif.

const handleKeyDown = (e) => {
  if (e.key === 'Enter') {
    // Action for Enter (Enter)
    console.log('Key pressed:', e.key);
  }
};

Riwayat Tombol Ditekan (History)

EnterEnter12:00:00