changed keyboard controls to recognise keys being held down