It'll be clearer to use KeyEvent.DOM_VK_BACK_SPACE instead of key code 8.