Separate keyboard and mouse commands into separate file.