Built in method to handle Widget Swapping for Touch and Keyboard in Common UI Plugin?

I need to show buttons for interact and fire when the user is using touch input but those buttons should change to text when using keyboard.

Is there a way in Common UI to automatically do this? AFAIK the Common Action widget only supports image/Control thumbnail swapping.