Starting on v2.34.0 they changed the packaging for the classes:
HasInputDevices, Keyboard, Mouse
They moved it from the org.openqa.selenium to the new org.openqa.selenium.interaction package
SELENIUM'S CHANGE LOG
Moved Mouse, Keyboard and TouchScreen to the interactions package
where they belong. This has the benefit of also making our build
files simpler once we delete the original versions which have been
deprecated.
All these classes are being used and imported by JBehave's WebDriverPage hence it doesn't compile after the upgrade