Mouse & keyboard events

We have a view that requires raw mouse/keyboard input - how can this be done via SwiftUI? I can't find any such APIs.