Updating mario to handle keys better.