debug keypress bug further