Fix problem with space key and side arrows keys