Simulate a keypress in Python blender

hi

How can I simulate keyboard button presses with Python in Blender?

Why not executing the operation with the right code?

I want to call the knife tool (k+c) .
I did not find a way
It may be possible this way

bpy.ops.mesh.knife_tool()