Fix for weird bug on keyboard