Fixing main runtime loop, adding MockCV for keyboard testing