Fix typo
Fix index while grabbing multimedia keys
Fix range check error