I\'m trying to get a function to handle both click and keyboard events as I\'m trying to make my web app keyboard accessible. When I use the | symbol for the type
|