Moved SDL event knowledge into command module