Added keyboard support, fixed snake bug