fixed management of 'space' button