added 'keycode' exception and fixed argument-errors