divide user input and btn, fix firefox keycode