They check the warranty and said keybord had just 1 year warranty and I can not do anything. I want know is there any way to repair that or use warranty for that?
As they told you, your warranty has expired.
You ask if there is a way to repair the keyboard. Perhaps (at your expense), but it might be cheaper to simply purchase a new iPad Pro Smart Keyboard. Ask at the Apple Store or Authorized Apple Service Center.