Setting up an use-key for many classes (c++)

Hi !

I think you should consider using Interfaces :

This will give you the ability to use the same functions (here, useKey()) on every class that implements the Interface, and to handle the use of the E key separately.