Some keyboard events handeling and sprite animation tweaks