Source code for key binding to move snake