Add keyboard handler JS code
Get correct id
Remove unused keyboard events