[#2966] Add constants for LMB and Space Bar, also add comment for the togglePlay function