Added play and pause buttons. Modified setting of mouse and keyboard listener.