better example. and arrow keys working