Fix keyboard keys and slice syntax