added key press buffering to prevent crashing into yourself when pressing the keys too quickly