Setting a window to have focus (CLion)

I recently was able to get a Cinder application to run in CLion on OS X (with CMake), after a decent amount of trial and error. However, while the application runs mostly properly, it doesn’t capture keyboard input at all - it acts as if it has no focus. (Pressing keys with the window in the foreground, for example, will send the keystrokes to whatever app was last open) The application works fine on Windows in Visual Studio - is this a platform issue? And is it fixable? I haven’t been able to find any functions with the purpose of setting window focus yet.