Fixes keyboard "keyup" logic