added key controls and stop button