Active MIDI inputs, unable to select

Hi,
I’m new to Projucer so followed the Tutorial: Create a basic Audio/MIDI plugin, Part 1: Setting up. After creating a Synth SAW Wave from the GUI. In the “Change the audio device settings” from the application menu, I tried to select my MIDI keyboard in Active MIDI inputs. It’s listed there but I am unable to select it; clicking in the tick box or highlighting then pressing enter does nothing. I am however able to select my audio cards midi input (which is first in the list).

The exact same thing happens when I use Projucer to create an audio-plugin project. Everything compiles fine with zero errors in Visual Studio 2017. But then when running the project, in Options Audio/MIDI settings, I can see my MIDI keyboard in Active MIDI inputs but am unable to select it.

Is there something I need to do to be able to select my MIDI keyboard as input?

Does it work if you open the MidiDemo in the DemoRunner?

Nope, throws an exception in Visual Studio 2017 when I select my keyboard as MIDI input.
This is the line it breaks at in MidiDemo.h:
rScreenshot%20-%2016_01_2019%20%2C%2017_14_36