canvas is flickable on space keypressed