onkeydown

Fires when a user is pressing a key

onkeypress

Fires when a user presses a key

onkeyup

Fires when a user releases a key